let arr = [1, 2, 3, 4]
arr.map((item) => {
    return item *2
})

var person = [{name: '亮亮', age: 18}, {name: '国强', age: 18}]
// var pname = person.map((item) => {
//     return item.name
// })
var prop = curry(function(key, obj) {
    return obj[key]
})
var pname = person.map(prop('name'))
var page = person.map(prop('age'))
console.log(pname);